package com.yuting.model;

import java.io.Serializable;

/**
 * 学生相关的信息
 * @author cyt
 * @date 2020/7/2
 */
public class Student implements Serializable {

    private static final long serialVersionUID = 5012078007297855039L;

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    private String password;

    public Student(String password, int age, int studentNum, String name) {
        this.password = password;
        this.age = age;
        this.studentNum = studentNum;
        this.name = name;
    }

    public int getAge() {
        return age;
    }

    public Student(int studentNum) {
        this.studentNum = studentNum;
    }

    public void setAge(int age) {
        this.age = age;
    }

    public Student(int age, int studentNum, String name) {
        this.age = age;
        this.studentNum = studentNum;
        this.name = name;
    }

    public int getStudentNum() {
        return studentNum;
    }

    private int age;
    public void setStudentNum(int studentNum) {
        this.studentNum = studentNum;
    }

    public String getName() {
        return name;
    }

    @Override
    public String toString() {
        return "Student{" +
                "age=" + age +
                ", studentNum=" + studentNum +
                ", name='" + name + '\'' +
                ", score=" + score +
                '}';
    }

    public void setName(String name) {
        this.name = name;
    }

    public int getScore() {
        return score;
    }

    public void setScore(int score) {
        this.score = score;
    }

    private int studentNum;

    private String name;

    private int score;
}
